﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chess
{
    public class BlackPlayer: Player
    {
        public BlackPlayer()
		{
			Piece piece;
			this.isColor = Player.Color.BLACK;	

			filePiece.Add( this.King = (new Piece(Piece.Name.King,this,4,7)));
			
            this.Queen = (new Piece(Piece.Name.Queen,this, 3,7 ));
            filePiece.Add(this.Queen);


            this.QueenPawn = new Piece(Piece.Name.Pawn, this, 3, 6);
            filePiece.Add(this.QueenPawn);
            this.KingPawn = new Piece(Piece.Name.Pawn, this, 4, 6);
            filePiece.Add(this.KingPawn); 

            this.QueenRook = (new Piece(Piece.Name.Rook,this,0,7)); 
            filePiece.Add(this.QueenRook);
		    this.KingRook  = (new Piece(Piece.Name.Rook,this,7,7));
            filePiece.Add(this.KingRook );

            this.QueenKnight = (new Piece(Piece.Name.Knight, this, 1, 7));
            filePiece.Add(this.QueenKnight);
            this.KingKnight = (new Piece(Piece.Name.Knight, this, 6, 7));
            filePiece.Add(this.KingKnight); 
			
			this.QueenBishop = (new Piece(Piece.Name.Bishop,this,2,7));
            filePiece.Add(this.QueenBishop); 
            this.KingBishop  = (new Piece(Piece.Name.Bishop,this,5,7));
            filePiece.Add(this.KingBishop );
			
			
			piece = new Piece(Piece.Name.Pawn,this,0,6);
            filePiece.Add(piece); 

			piece = new Piece(Piece.Name.Pawn,this,1,6);
            filePiece.Add(piece); 
			
            piece = new Piece(Piece.Name.Pawn,this,2,6);
            filePiece.Add(piece); 

			piece = new Piece(Piece.Name.Pawn,this,5,6);
            filePiece.Add(piece); 
			piece = new Piece(Piece.Name.Pawn,this,6,6);
            filePiece.Add(piece); 
			piece = new Piece(Piece.Name.Pawn,this,7,6);
            filePiece.Add(piece); 

		}

        public override int PawnForwardOffset
        {
            get { return -16;}
        }

        public override int PawnAttackLeftOffset
        {
            get { return -15; }
        }

        public override int PawnAttackRightOffset
        {
            get { return -17; }
        }

    }
}
